.cart {
    &-buttons {
        display: flex;
        background-color: #efefef;
        margin-left: -10px;
        margin-right: -10px;

        .nav-item {
            cursor: pointer;
            user-select: none;
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 8px 20px;
            font-weight: 600;
            transition: all .2s;
            font-size: 13px;
            min-height: 42px;

            &:hover {
                background-color: #dbdbdb;
            }

            &.active {
                background-color: #ffffff;
            }

            &--save--carts {
                background-color: #e09914;
                font-size: 20px !important;
                color: #ffffff;

                .yith-pos-icon-saved-cart {
                    font-size: 26px;
                }

                &:hover {
                    background-color: #e09914;
                }

                &.disabled {
                    opacity: 0.3;
                }
            }
        }
    }

    &-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        padding: 10px;
        height: calc(100% - 42px);
        box-sizing: border-box !important;
    }

    &-items {
        flex: 1;
        overflow-y: auto;
        height: 100%;
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;

        .cart-item {
            border-bottom: 2px solid #EFEFEF;

            &__row {
                display: flex;
                padding: 10px 0;
                align-items: center;
            }

            &__remove {
                width: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;

                i {
                    color: rgba(0, 0, 0, 0.35);
                    font-size: 12px;
                }

                &:hover {
                    i {
                        color: rgba(0, 0, 0, 1);
                    }
                }
            }

            &__image {
                width: 50px;
                height: 50px;
                object-fit: contain;
            }

            &__name {
                flex: 1;
                font-weight: 600;
                display: flex;
                align-items: center;
                padding: 0 10px;

                &:after {
                    content: '\f12b';
                    font-family: 'yith-pos-icon' !important;
                    position: absolute;
                    font-size: 13px;
                    right: 0;
                    top: 50%;
                    opacity: 0;
                    width: 40px;
                    height: 40px;
                    text-align: center;
                    line-height: 40px;
                    transform: translateY(-50%);
                    color: rgba(0, 0, 0, 0.5);
                }
            }

            &__qty {

            }

            &__price {
                min-width: 70px;
                color: #888;
                font-size: .9rem;
                text-align: right;
            }

            &__total {
                font-size: 1.1rem;
                min-width: 100px;
                text-align: right;
            }
        }
    }

    &-totals {
        display: block;

        .cart-total {
            padding: 7px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            column-gap: 10px;

            &__remove {
                display: flex;
                align-items: center;
                justify-content: flex-start;
                cursor: pointer;

                i {
                    color: rgba(0, 0, 0, 0.35);
                    font-size: 12px;
                }

                &:hover {
                    i {
                        color: rgba(0, 0, 0, 1);
                    }
                }
            }

            &__label {
                flex: 1;
                text-transform: uppercase;
                font-size: 0.85em;
                position: relative;
            }

            &__price {
                text-align: right;
            }

            &-total {
                padding: 20px 0;
                font-size: 22px;
                font-weight: 700;
                border-top: 2px solid #efefef;
                color: #09adaa;
            }

            &-subtotal {
                border-bottom: 2px solid #efefef;
            }
        }
    }

    &-empty-carts {
        display: flex;
        justify-content: flex-end;
        column-gap: 10px;

        &__flex {
            flex: 5;
        }

        &__btn {
            flex: 2;
            background: #c65338;
            min-height: 35px;
            line-height: 35px;
            display: inline-block;
            font-size: 14px;
            color: #ffffff;
            cursor: pointer;
            text-align: center;
        }
    }

    &-actions {
        display: grid;
        grid-template-columns: 14% 14% 14% 14% 14% auto;
        grid-gap: 10px;

        .cart-action {
            flex: 1;
            background-color: var(--pos-color-primary);
            min-height: 100px;
            text-transform: uppercase;
            font-size: 12px;
            text-align: center;
            color: #fff;
            font-weight: 700;
            cursor: pointer;
            user-select: none;
            padding: 24px 10px 0;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
            row-gap: 5px;
            border: 0;

            &--add-note {
                background-color: var(--pos-color-secondary);
            }

            &--suspend {
                background-color: #E09914;
            }

            &--pay {
                flex: 2;
                background-color: #A0A701;
                font-size: 32px;
                justify-content: center;
                padding-top: 0;
            }
        }
    }
}

.empty-cart {
    .cart-empty-box {
        width: 100%;
        height: 100%;
        text-align: center;
        padding: 10%;
        color: #c0c0c0;
        font-size: 1.2rem;
    }

    .cart-empty-svg {
        background: url(../assets/empty-cart.svg) no-repeat center center;
        background-size: contain;
        opacity: .1;
        width: 100%;
        height: 90%;
        text-indent: -99999px;
        display: block;
    }
}